package com.diy.sigmund.diycommon.spring.service;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ylm-sigmund
 * @since 2021/7/29 22:51
 */
public interface ApiIdempotentService {
    /**
     * 创建token
     *
     * @return
     */
    String createToken();

    /**
     * 检验token
     *
     * @param request
     * @return
     */
    boolean checkToken(HttpServletRequest request) throws Exception;

}
